import os
import subprocess

# from 脚本工具设计.文件分类 import source_folder


def main():

   source_root = input("输入测试目录：").strip()
   print("=" * 50)
   print(source_root)
   for root, _, files in os.walk(source_root):
       print(files)
       print(root)
       for file in files:
           if file.startswith("~$"):
               continue
           print(file)
       print("=" * 50)
       print(len(files))
   return

if __name__ == '__main__':
    main()